<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />	
		<title>会员列表</title>
		<link rel="stylesheet" type="text/css" href="__STATIC__/home/css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="__STATIC__/home/css/huiyuanliebiao.css"/>
	</head>
	<body>
		<div class="wrapper">
			<div class="top">
		 	 	<p class="top-p1" onclick="javascript:history.back(-1);"> < </p>
		 	 	<p class="top-p2">会员列表</p>
		 	</div>
		 	<div class="content">
		 		<form action="" id="formdata" method="get">
			 		<div class="content1">
			 			<input type="hidden" name='id' value="{$id}">
			 			<input type="text" name="name" value="{$Think.get.name}" placeholder="输入用户名" />
			 			<img id="subbtn" src="__STATIC__/home/images/sousuo.jpg"/>
			 		</div>
			 	</form>
			 	{empty name="userlist"}
			 		<div class="content2">
			 			<p class="con2-p1"></p>
			 			<p class="con2-p2">暂无数据......</p>
			 			<p class="con2-p3"></p>
			 			<p class="con2-p4"></p>
			 		</div>
			 	{/empty}
		 		{volist name="userlist" id="item"}
			 		<div class="content2">
			 			<p class="con2-p1">{$item['name']}</p>
			 			<p class="con2-p2">{if condition="$item['lv'] eq 1"}代理{elseif condition="$item['lv'] eq 2"/}会员{/if}</p>
			 			<p class="con2-p3">{$item['rebate']}%</p>
			 			<p class="con2-p4"><a href="{:url('user/userdetails',array('id'=>$item['id']))}">查看更多>></a></p>
			 		</div>
			 	{/volist}
		 	</div>
		</div>
	</body>
</html>
<script src="__STATIC__/home/js/zepto.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__STATIC__/home/js/base.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$("#subbtn").click(function(){
		var bool=true;
		var name;
		$('input').each(function(i){
			if(!$(this).val()) bool=false;
		})
		if(bool){
			$("#formdata").submit();
		}else{
			alert("请输入用户名！");
		}
	})
</script>